package com.woniuxy;

import com.github.pagehelper.PageInfo;
import com.woniuxy.entity.Poetry;
import com.woniuxy.service.impl.PoetryServiceImpl;
import org.junit.Test;

public class test {

    @Test
    public void testFind(){
        PoetryServiceImpl psi = new PoetryServiceImpl();
        Poetry poetry = new Poetry();
        poetry.setAuthor("李白");
        PageInfo<Poetry> info = psi.findOnePage(1, poetry);
        System.out.println(info);
    }
}
